package com.rk.pethome.basic.util;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AjaxResult {
    private Boolean success=true;
    private String msg;
    //返回到前端的结果值
    private Object result;

    public AjaxResult(Boolean success,String msg)
    {
        this.success=success;
        this.msg=msg;
    }

    public AjaxResult setResult(Object result){
        this.result=result;
        return this;
    }
}
